<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" href="fontface/iconfont.css">
    <link rel="stylesheet" href="css/swiper.min.css">
    <link rel="stylesheet" href="css/video-js.min.css">

    <!-- <link rel="stylesheet" href="css/share.css"> -->
    <link rel="stylesheet" href="css/main.css">
    <link rel="stylesheet" href="css/ly.css">

    <script src="js/jquery-1.11.0.js"></script>
    <script src="js/share.js"></script>
    <script src="js/swiper.js"></script>
    <script src="js/video.min.js"></script>
    <link rel="stylesheet" type="text/css" href="http://apps.bdimg.com/libs/bootstrap/3.3.4/css/bootstrap.css">
    <link rel="stylesheet" href="css/index.css" />
    <title>首页</title>
</head>

<body>
<div class="flex">
     <!--菜单-->
     <div class="cp-menu">
        <div class="cp-menu-icon flex flex-pac cff">
            设备管理
        </div>
        <ul class="nav">
            <li class="nav-item">
                <div class="flex flex-ac plr20">
                    <img class="mr10"
                        src=""
                        alt="">
                    <span class="flex-f1">设备管理</span> <i class="lxjiconfont xiangyou1"></i>
                </div>
                <ul class="sub active">
                    <li><a href="通道列表.html?sub=0" class="sub-item">通道列表</a></li>
                    <li><a href="设备信息.html?sub=1" class="sub-item">设备信息</a></li>
                </ul>
            </li>
        </ul>
    </div>
    <!--内容-->
    <div class="cp-container bg-040f3c">
         <!--头部-->
         <header class="cp-header flex flex-ac">
            <div class="cp-header-content flex-f1">
                设备信息
            </div>
            <!-- <img class="cp-header-img" src="./images/banner.png" alt=""> -->
            <p class="cp-header-name mr10">liyang</p>
            <input type="submit" class="login-out flex flex-pac" value="退出">
        </header>
        
        <!--主体-->
    <div class="main clearfix">
        <div class="main-left">
            <div class="border-container containertop">
                <h5 class="name-title tile-size-color">
                    设备状态
                </h5>
                <div id="radar">
                    <div class="radarkong">
                        <p class="tile-size-color">设备总数 :<span class="Totalequipment"> 660个</span>统计时间 :<span>
                                2020.01.05 15:28</span></p>
                    </div>
                    <div class="pie-chart" id="pie-chart"></div>
                    <ul class="SiteStatusList">
                        <li><i class="Statusnormal Statussame"></i>正常：<span>556</span></li>
                        <li><i class="Statusemergency Statussame"></i>告警：<span>40</span></li>
                        <li><i class="StatusOffline Statussame"></i>离线：<span>30</span></li>
                    </ul>
                </div>
            </div>

            <div class="border-container containerbottom">
                <div class="name-title tile-size-color">
                    设备温度
                </div>
                <div class="graduateyear">
                    <div class="bar-chart" id="bar-chart"></div>
                    <ul class="SiteStatusList">
                        <li>本周数据</li>
                        <li class="DataSwitch"><i class="ThisweekData Datasame" onClick="DataSwitch(this,1)"></i><i
                                class="ThisweekData" onClick="DataSwitch(this,2)"></i></li>
                        <li class="Defaultgray">本月数据</li>
                    </ul>
                </div>


            </div>
        </div>
        <div class="main-middle">
            <div class="border-container containertop">
                <div class="name-title tile-size-color">
                    设备在线情况
                </div>
                <div id="mapadd">
                    <div class="mapleft">
                        <div class="progress2-chart" id="progress2-chart">
                        </div>
                        <a href="###" class="progressMore">更多&gt;</a>
                    </div>

                    <div class="map-chart" id="map-chart">

                    </div>
                    <ul class="Devicestatus-List">
                        <li class="Online2">65.5%
                            <span class="DevicestatusName">在线</span>
                        </li>
                        <li class="Online2">10.5%
                            <span class="DevicestatusName">离线</span>
                        </li>
                        <li class="Online2">10.5%
                            <span class="DevicestatusName">维护</span>
                        </li>
                        <li class="Online2">9.5%
                            <span class="DevicestatusName">故障</span>
                        </li>
                    </ul>

                </div>
            </div>
            <div class="border-container containerbottom borderno-container">
                <ul class="teacher-pie clearfix">
                    <li class="teacherList">
                        <div class="name-title tile-size-color">
                            故障时段分布
                        </div>
                        <div id="courserate">
                            <div class="line-chart" id="line-chart"></div>
                            <ul class="SiteStatusList">
                                <li><i class="Statusnormal Statussame"></i>合计故障次数 <span>556</span></li>

                            </ul>
                        </div>
                    </li>
                    <li class="teacherList">
                        <div class="name-title tile-size-color">
                            故障类型分布
                        </div>
                        <div class="bars-chart" id="bars-chart"></div>
                    </li>
                </ul>
            </div>
        </div>
        <div class="main-right">
            <div class="border-container containertop">
                <div class="name-title tile-size-color">
                    优秀设备排名
                </div>
                <div class="progress1-chart" id="progress1-chart"></div>
            </div>
            <div class="border-container containerbottom">
                <div class="name-title tile-size-color">
                    故障类型分布
                </div>
                <div id="radar-chart" class="radar-chart">

                </div>

            </div>
        </div>
    </div>

    <script type="text/javascript" src="js/echarts.js"></script>
    <script type="text/javascript" src="js/new_file.js"></script>
    <script type="text/javascript" src="js/maps.js"></script>
    </div>
</div>

</body>

</html>
<script>
    $(function () {
        //从url里边拿数据
        function GetQueryString(name) {
            var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
            var r = window.location.search.substr(1).match(reg);
            if (r != null) return unescape(r[2]);
            return null;
        }

        var navIndex = 0, subItemIndex = 0;
        navIndex = GetQueryString("nav");
        subItemIndex = GetQueryString("sub");
        console.log($('.nav .nav-item').eq(navIndex).addClass("active").find('.sub-item').eq(subItemIndex).addClass("active"))
        $('.nav .nav-item').click(function () {
            $(this).children().slideDown(1000)
            $(this).siblings().children(".sub").slideUp(1000)
        })
    })
</script>
